package com.aliyun.messagemgt.domain.repository;

import com.aliyun.messagemgt.dto.base.BaseReceiveGroupRangeAddCmd;
import com.aliyun.messagemgt.dto.base.BaseReceiveGroupRangeDTO;

import java.util.List;

/**
 * <p>
 * 基础表-接收组范围表 服务类
 * </p>
 *
 * @author wugongzi
 * @since 2021-09-28
 */
public interface IBaseReceiveGroupRangeRepository {

    /**
     * 根据groupId查询接收组范围
     * @param groupIdList
     * @return
     */
    List<BaseReceiveGroupRangeDTO> selectByGroupIdList(List<Long> groupIdList);

    /**
     * 根据groupId删除接收组范围
     * @param groupId
     * @return
     */
    int deleteByGroupId(Long groupId);

    /**
     * 新增接收组范围
     * @param baseReceiveGroupRangeAddCmdList
     */
    void add(List<BaseReceiveGroupRangeAddCmd> baseReceiveGroupRangeAddCmdList);

    /**
     * 根据groupId查询接收组范围
     * @param groupId
     * @return
     */
    List<BaseReceiveGroupRangeDTO> selectByGroupId(Long groupId);
}
